<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Settingauthtxt extends Model
{
    protected $table = 'setting_auth_txt';
    protected $primaryKey = 'id';

    public static function getSettingAuthTxt($name)
    {
        return self::where("name",$name)->first();
    }

    public static function insertSettingAuthTxt($name,$txt)
    {
        return self::insert(["name"=>$name,"txt"=>$txt,"created_at"=>time()]);
    }
}
